home *** CD-ROM | disk | FTP | other *** search
-
- ###### PSE-XMPL.SRC ########################################################
-
- ### Animated pause prompt example source code. 1996 SPORT!ware ####
- # Contact U. CraZy Diamond@SPORT! on DoveNet or DiamondNet or call #
- # The Serial Port BBS (807) 547-2134 #
- # #
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
- #~~~~ To install, compile with BAJA.EXE and ~~~~#
- # edit line 563 of SBBS\CTRL\TEXT.DAT to read: #
- # #
- # "@EXEC:PSE-XMPL@" 563 Pause #
- # #
- # *It is recomended that you rename the file to PAUSExx where "xx" is #
- # a two digit number. This will allow it to work with the included #
- # pause prompt previewer, PAUSECHK.BIN #
- #_____ _____#
- ##=============================================================##
-
- int c # Integer variable to count loops
-
- ##--[ This will hide the cursor from ansi terminals
- print "nks "
-
- ##--[ Top of loop
- :PAUSE_LP
-
- ##--[ This part watches for a keypress while allowing loop execute
- inkey
- if_true
- print "[>"
- compare_key N
- if_true
- setstr "N"
- else
- setstr "\r"
- end_if
- ungetstr
- return
- end_if
-
- ##--[ This is the prompt displayed to the user
- switch c
- case 0
- print "[ hy■b∙∙∙∙∙∙wHit a keyb∙∙∙∙∙∙∙nku"
- end_case
- case 1
- print "[ hb∙∙y■■b∙∙∙wHit a keyb∙∙∙∙∙∙∙nku"
- end_case
- case 2
- print "[ hb∙∙∙∙y■■b∙wHit a keyb∙∙∙∙∙∙∙nku"
- end_case
- case 3
- print "[ hb∙∙∙∙∙∙y■wHit a keyy■b∙∙∙∙∙∙nku"
- end_case
- case 4
- print "[ hb∙∙∙∙∙∙∙wHit a keyy■■b∙∙∙∙∙nku"
- end_case
- case 5
- print "[ hb∙∙∙∙∙∙∙wHit a keyb∙∙y■■b∙∙∙nku"
- end_case
- case 6
- print "[ hb∙∙∙∙∙∙∙wHit a keyb∙∙∙∙y■■b∙nku"
- end_case
- case 7
- print "[ hb∙∙∙∙∙∙∙wHit a keyb∙∙∙∙∙∙y■nku"
- end_case
-
- ##--[ The "default" case should never be displayed and is here only
- # as a safety feature. If it DOES display then the int c var
- # has somejow gotten messed up. ie: does not fall within the
- # number of cases specified
- default
- print "[ hb{wHit a keyb}nku"
- end_case
- end_switch
-
- ##--[ Set this number to corespond with the number of cases switched
- # (See comment above DEFAULT)
- compare c 7
- if_equal
- set c 0
- else
- add c 1
- end_if
-
- ##--[ MSWAIT gives up timeslices so shouldn't affect other nodes
- # that are running on the same machine. Experiment with it but
- # it's better to add CASE's rather than increase this number to
- # slow down the animation. A lower number here makes a keypress
- # appear almost instantanious
- mswait 20
-
- goto PAUSE_LP
-
- ##------------------========={ EOT }=========------------------##
-